package com.xyzwps.server.paimon.model.entity

import com.xyzwps.server.paimon.value.Phone
import com.xyzwps.server.paimon.value.UserId
import kotlin.time.Instant

data class User(
    val id: UserId? = null,
    val nickname: String,
    val phone: Phone,
    val createdAt: Instant
) {
    companion object {
        const val NICK_NAME_MIN_LENGTH = 2
        const val NICK_NAME_MAX_LENGTH = 100
        const val PHONE_MAX_LENGTH = COMMON_PHONE_MAX_LENGTH
    }
}
